import { getAction, postAction } from '@/api/manage'

// 登录日志列表
const list = (params) => getAction('/admin/loginLog/page', params)
// 删除登录日志
const del = (params) => postAction(`/admin/loginLog/delete/${params}`)
// 批量删除登录日志
const batchDel = (params) => postAction(`/admin/loginLog/batchDel`, params)
// 清空操作日志
const clear = () => postAction(`/admin/loginLog/clear`)
// 导出登录日志
const exports = (params) => postAction('/admin/loginLog/export', params, 'blob')

export {
  list,
  del,
  batchDel,
  clear,
  exports
}
